import Vue from 'vue'
import Router from 'vue-router'
import Partition from '@/components/Partition'
import Design from "../components/Design";

Vue.use(Router)

export default new Router({
  mode: 'history', // 去掉url中的#
  scrollBehavior: () => ({ y: 0 }),
  routes: [
    {
      path: '/partition',
      name: 'Partition',
      component: Partition
    },
    {
      path: '/',
      name: 'Design',
      component: Design
    }
  ]
})
